package db

import (
	"context"
	"zuhao-seucre/internal/enums"
	"zuhao-seucre/internal/service"

	"zuhao-seucre/api/db/v1"
)

func (c *ControllerV1) DbDashbord(ctx context.Context, req *v1.DbDashbordReq) (res *v1.DbDashbordRes, err error) {
	count := service.Tag().GetAccountTagCount(ctx, enums.TagTypeDbName)
	res = new(v1.DbDashbordRes)
	res.DbNum = count
	return
}
